package com.syni.mdd.yhd.common.all.dao.jpa;

import com.syni.mdd.yhd.common.all.dao.BaseJPADao;
import com.syni.mdd.yhd.common.all.entity.BmsDxSubFood;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Set;
import java.util.function.IntBinaryOperator;

public interface BmsDxSubFoodDao extends BaseJPADao<BmsDxSubFood,Integer> {

    List<BmsDxSubFood> findByBmsLibraryId(Integer librayId);

    List<BmsDxSubFood> findByBmsLibraryIdInAndIsDelete(Set<Integer> librayIds, Integer isDelete, Sort sort);

    List<BmsDxSubFood> findByIdInAndIsDelete(Set subIds,Integer isDelete);

    List<BmsDxSubFood> findByIdIn(Set subIds);

    BmsDxSubFood findByIdAndIsDelete(Integer subId,Integer isDelete);
}
